package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("订单取消")
public class CanCelNotifyDTO extends PartnerBaseNotify{
    public CanCelNotifyDTO(){

        super.setNotifyType(PartnerNotifyTypeEnum.CANCEL.value());
        super.setNotifyName(PartnerNotifyTypeEnum.CANCEL.named());
    }

    /**
     * 订单数据
     */
    private CanCelNotifyData data;

    @Data
    @ApiModel("订单取消")
    public static class CanCelNotifyData{
        /**
         * 订单状态
         */
        @ApiModelProperty("订单状态")
        private Integer orderStatus;

        /**
         * 取消时间
         */
        @ApiModelProperty("取消时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date cancelTime;

        /**
         * 取消备注
         */
        @ApiModelProperty("取消备注")
        private String remark;
    }
}
